// -* - coding: utf - 8 -* -
// Copyright(c) 2023 Intel Corporation
//
// Licensed under the Apache License, Version 2.0(the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//   http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
@import './variables.scss';

table.rounded {
  margin: auto;
  border-collapse: collapse;

  tr.header {
    text-align: center;
    font-weight: bold;
  }

  th.header {
    background: $accent-yellow;
    color: black;
    vertical-align: middle;
  }

  td.header {
    background: $accent-yellow;
    padding: 10px;
    color: black;
    text-align: center;
    border-bottom: 1px solid #fafafa;
    border-radius: 0px;
  }

  tr:nth-child(even) {
    background-color: rgba(182, 182, 182, 0.13);
  }

  tr:nth-child(odd) {
    background-color: rgba(231, 231, 231, 0.13);
  }

  tr.cell,
  td.cell {
    padding: 5px;
    border-bottom: none;
  }

  tr:last-child {

    td:last-child {
      border-radius: 0 0 0.5rem 0;
    }

    td:first-child {
      border-radius: 0 0 0 0.5rem;
    }

    td:only-child {
      border-radius: 0 0 0.5rem 0.5rem;
    }
  }

  tr:first-child {

    th:first-child {
      border-radius: 0.5rem 0 0 0;
    }

    th:last-child {
      border-radius: 0 0.5rem 0 0;
    }

    td:first-child {
      border-radius: 0.5rem 0 0 0;
    }

    td:last-child {
      border-radius: 0 0.5rem 0 0;
    }

    td:only-child {
      border-radius: 0.5rem 0.5rem 0 0;
    }
  }

  tr:only-child {
    td:only-child {
      border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
  }

  tr.active {
    background-color: #ffe07ab6 !important;
    color: black;
  }
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.btn-primary {
  background-color: $accent-yellow !important;
  color: black !important;
  border: 2px solid $accent-yellow !important;
}

.btn-primary:hover,
.btn-primary:focus {
  color: black !important;
  border: 2px solid black !important;
}

.btn-secondary {
  background-color: white !important;
  color: black !important;
  border-color: $accent-yellow !important;
  margin-bottom: 4px;
  width: 100%;
}

.btn-secondary:hover {
  background-color: $lighter-yellow !important;
  color: black !important;
  border-color: $accent-yellow !important;
}